import { Mock } from '../base'

Mock.mock(/\/token\/check$/, {
  success: true,
  code: 100000,
  message: '操作成功',
  result: {
    tokenType: 'bearer',
    accessToken: 'ORHfWzB28Jtz5HvGV5tBbzPDtFiYRPuy',
    refreshToken: '3ripUT4kkv3JKjCTEYdUobQwyeAZ0pLF',
    expiresIn: 7200,
    valid: true
  }
})

Mock.mock(/\/user\/info$/, {
  success: true,
  code: 100000,
  message: '操作成功',
  result: {
    id: '1268421375629918210',
    username: 'admin',
    realname: '管理员账号',
    avatar: 'http://gyjx-dev.oss-cn-beijing.aliyuncs.com/galaxy/upms-api/1597297062941.jpeg',
    birthday: '2020-08-04T02:11:40.000+0000',
    sex: null,
    email: '',
    phone: '18588732600',
    tenants: [{ id: 10019, tenantCode: null, tenantName: null, description: '营销工具测试' }, { id: 10019, tenantCode: null, tenantName: null, description: '营销工具测试' }, { id: 10025, tenantCode: null, tenantName: null, description: '康王洗发水' }, { id: 10026, tenantCode: null, tenantName: null, description: '康王洗发水222' }, { id: 10033, tenantCode: null, tenantName: null, description: '恶女    额度' }, { id: 10035, tenantCode: null, tenantName: null, description: '       ' }, { id: 10037, tenantCode: null, tenantName: null, description: '  ' }, { id: 10048, tenantCode: null, tenantName: null, description: '权益运营后台' }],
    developers: [{ id: 43, sysUid: '1268421375629918210', developType: 1 }]
  }
})
